p id="notice" = notice
h1 style="padding-bottom: 20px;" 用户管理

= link_to '新增用户', new_admin_user_path

table class="table table-striped table-hover"
  thead
    tr
      th 用户名
      th 管理权限
      th 所属机构
      th colspan="3"
  tbody
    - @users.each do |user|
      tr
        th = user.user_name
        th 
          - if user.admin 
            是 
          - else 
            否
        th = user.department.dpname
        th = link_to '查看', admin_user_path(user)
        th = link_to '修改', edit_admin_user_path(user)
        th = link_to '删除', admin_user_path(user), method: :delete, data: { confirm: '您确定要删除吗?' }
